using System.Collections.Generic;

namespace LiJ.Framework.Msg.Mos
{
	/// <summary>
	/// 回复音乐消息
	/// </summary>
	public class WxMusicReplyMsg : WxBaseReplyMsg
	{
		/// <summary>
		/// 缩略图的媒体id，通过素材管理接口上传多媒体文件，得到的id
		/// </summary>
		public string ThumbMediaId
		{
			get;
			set;
		}

		/// <summary>
		/// 音乐标题
		/// </summary>
		public string Title
		{
			get;
			set;
		}

		/// <summary>
		/// 音乐描述
		/// </summary>
		public string Description
		{
			get;
			set;
		}

		/// <summary>
		/// 音乐链接
		/// </summary>
		public string MusicUrl
		{
			get;
			set;
		}

		/// <summary>
		/// 高质量音乐链接，WIFI环境优先使用该链接播放音乐
		/// </summary>
		public string HqMusicUrl
		{
			get;
			set;
		}

		public WxMusicReplyMsg()
		{
			base.MsgType = "music";
		}

		protected override void SetValueToXml()
		{
			Dictionary<string, object> obj = new Dictionary<string, object>
			{
				{
					"Title",
					(object)this.Title
				},
				{
					"Description",
                    this.Description
                },
				{
					"MusicURL",
					(object)this.MusicUrl
				},
				{
					"HQMusicUrl",
					(object)this.HqMusicUrl
				},
				{
					"ThumbMediaId",
					(object)this.ThumbMediaId
				}
			};
			Dictionary<string, object> dictionary = (Dictionary<string, object>)(base["Music"] = obj);
		}
	}
}
